# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=recoverjpeg
pkgver=2.6.3
pkgrel=5
groups=('blackarch' 'blackarch-forensic')
pkgdesc='Recover jpegs from damaged devices.'
url='https://github.com/samueltardieu/recoverjpeg'
arch=('x86_64' 'aarch64')
license=('GPL')
depends=('glibc' 'python' 'bash')
optdepends=('libexif: needed for sort-pictures'
            'imagemagick: needed for sort-pictures')
source=("http://www.rfc1149.net/download/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('2ad016d337b965ddad38117d82ccc3b41b9f38afa20509c4fa1ca503ad10d009ffb8d21287a19d76c5f0eaf11da1986d5a417b762a4813db164f9198b2aae51b')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr --mandir=/usr/share/man

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR=$pkgdir install
}

